package Day5;

public class myCar {
}

class Car{
    public String mark = "byd";

    public void drive () {
        System.out.println("Start your engine");
    };
}
class SubCar extends Car{
    public int price = 1;

    public int Speed = 100;

    public void alterSpeed ( int newSpeed ) {
        Speed = newSpeed;
    }
}

